// @ts-ignore
/* eslint-disable */
import request from "@/utils/request";

/** 此处后端没有提供注释 POST /file/blog/upload */
export async function uploadBlogFile(
  body: {},
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseString>("/file/blog/upload", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /file/test/delete */
export async function testDeleteFile(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.testDeleteFileParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>("/file/test/delete", {
    method: "POST",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 GET /file/test/download/ */
export async function testDownloadFile(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.testDownloadFileParams,
  options?: { [key: string]: any }
) {
  return request<any>("/file/test/download/", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /file/test/upload */
export async function testUploadFile(
  body: {},
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseString>("/file/test/upload", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}
